package com.xh.bussiness.tms.bean.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @author Pitt Cheung
 * @date 2021/7/12 14:39
 */
@Data
@ApiModel("确认考勤请求参数")
public class SaveOrUpdateStudentAttendRequest {

    @ApiModelProperty("班级id")
    private String classId;

    @ApiModelProperty("课次id")
    private String currId;

    @ApiModelProperty("上课日期")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date currDate;

    @ApiModelProperty("课次序号")
    private Integer currOrderNo;

    @ApiModelProperty("学生考勤数据")
    private List<StudentAttendStatusRequest> studentAttends;
}
